import { IsString, IsPhoneNumber } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class PasswordResetRequestDto {
  @ApiProperty({
    example: '13812345678',
    description: '用户手机号',
  })
  @IsPhoneNumber('CN', {
    message: '手机号格式不正确，请输入正确的中国大陆手机号',
  })
  phone: string;
}
